<?php #coding: utf-8 æ ø å ?>

<?php






// BIRTH OG DEATH - her udskrives fÃ¸dsels og dÃ¸d eller tilsvarende, ligegyldigt om der er tale om entitet, sted eller begivenhed.

if($er_jeg_admin == "ja") 
{
	if(!isset($stamdata['birth']) or $stamdata['birth'] == 0)
	{
		$ret_birth_link="<a class='rediger' title='Rediger' href='".base_url()."core/vis/se/".$type."/".$stamdata['id']."/rediger_birth'></a>";
	}
	else
	{
		$ret_birth_link="";
	}

	if(!isset($stamdata['death']) or $stamdata['death'] == 0)
	{
		$ret_death_link="<a class='rediger' title='Rediger' href='".base_url()."core/vis/se/".$type."/".$stamdata['id']."/rediger_death'></a>";
	}
	else
	{
		$ret_death_link="";
	}
}
else
{
	$ret_birth_link="";
	$ret_death_link="";
}
echo "<p class='ink'><b class='rubrik'>".$birth_ord.": </b>".$stamdata['birth_navn'].$ret_birth_link;
if($stamdata['birth'] != 0)
{
	$alder = $this->tid_model->alder($stamdata['birth'], $ingame_nu['tid_db']);

	if($stamdata['birth'] > $ingame_nu['tid_db']){ //hvis birth er i fremtiden
		$alder = $this->tid_model->alder($ingame_nu['tid_db'],$stamdata['birth']);
		echo "&nbsp;&nbsp;&nbsp;&nbsp;(om ".$alder.")";
	}else{
		echo "&nbsp;&nbsp;&nbsp;&nbsp;(for ".$alder." siden)";
	}
	
}

echo "<br>";
echo "<p class='ink'><b class='rubrik'>".$death_ord.": </b>".$stamdata['death_navn'].$ret_death_link;
if($stamdata['death'] != 0)
{
	$alder_ved_doed = $this->tid_model->alder($stamdata['birth'],$stamdata['death']);
	echo "&nbsp;&nbsp;&nbsp;&nbsp;(eksisterede i ".$alder_ved_doed.")";
}elseif($stamdata['birth'] == 0 and $stamdata['death'] != 0){
	$alder = $this->tid_model->alder($stamdata['death'], $ingame_nu['tid_db']);
	if($stamdata['death'] > $ingame_nu['tid_db']){ //hvis birth er i fremtiden
		$alder = $this->tid_model->alder($ingame_nu['tid_db'],$stamdata['death']);
		echo "&nbsp;&nbsp;&nbsp;&nbsp;(om ".$alder.")";
	}else{
		echo "&nbsp;&nbsp;&nbsp;&nbsp;(for ".$alder." siden)";
	}
}


	$this->load->view("core/overunder");

	$this->load->view("core/sted/historie");



?>





	

